#ifndef CHECKUPDATE_H
#define CHECKUPDATE_H

#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkReply>


class CheckUpdate : public QObject
{
    Q_OBJECT
public:
    explicit CheckUpdate(QObject *parent = nullptr);
    void Check(QString currver);

signals:
    void needUpdate(const QString &s);
public slots:
    void replyFinished(QNetworkReply *reply);

private:
    QString CurrVer="";
    QNetworkAccessManager *m_network;
};

#endif // CHECKUPDATE_H
